package com.twelve.runner;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @program: twelve
 * @description: 项目启动自动执行runner
 * @author: geyuqi
 * @create: 2018-12-17 14:12
 **/
@Component
@Order(value = 1)
public class MyApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        System.out.println("===================");
        System.out.println("欢迎来到坏老头");
        System.out.println("===================!");
    }
}
